<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="icon" href="/static/images/logo.ico">

    <title>六六脑·儿童脑适能训练评估系统</title>

    <link href="/static/tools/bootstrap/css/bootstrap.min.css" rel="stylesheet">
    <link href="/static/css/teacher/teacher.css" rel="stylesheet">
    <link href="/static/css/basic.css" rel="stylesheet">
      {% block css %}{% endblock %}
      <style>
        .topset{
          margin-bottom:5px;
        }
        .icuser{
          font-size: 3rem;
        }
      </style>
  </head>

  <body>
    <nav class="navbar navbar-inverse navbar-fixed-top m-wrap-topnav">
      <div class="container-fluid">
        <div class="navbar-header">
          <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
            <a class="navbar-brand navbar-left m-icon-66nao" href="#">
                <img src="/static/images/icon/logo_white.png" alt="" class="u-icon-66nao">
            </a>
          <a class="navbar-brand u-top-text" href="#">六六脑·儿童脑适能训练评估系统</a>
        </div>
        <div id="navbar" class="navbar-collapse collapse">
          <ul class="nav navbar-nav navbar-right m-nav-top">
            <li><a href="#" class="navbar-brand m-icon-66nao"><img src="../..{{ request.user.avatar }}" alt="" class="u-icon-66nao"></a></li>
            <li class="dropdown">
              <a href="javascript:void(0)" class="dropdown-toggle m-dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"><span>{{ request.user.realname }} </span><span class="caret"></span></a>
              <ul class="dropdown-menu m-dropdown-menu">
                {% if request.user.utype == 2 %}
{#                <li class="dropdown-header">设置操作</li>#}
                <li class="m-op-dropdown"><a href="/teacher/teacset/">资料设置</a></li>
                <li class="m-op-dropdown"><a href="/teacher/mpass/">更改密码</a></li>
                {% endif %}
{#                <li class="dropdown-header">退出操作</li>#}
                <li class="m-op-dropdown"><a href="{% url 'logout' %}">退出！</a></li>
              </ul>
            </li>
          </ul>
{#          <form class="navbar-form navbar-right">#}
{#            <input type="text" class="form-control" placeholder="搜索...">#}
{#          </form>#}
        </div>
      </div>
    </nav>

      <div class="container-fluid m-container-fluid">
          {% block body%}{% endblock %}
     </div>
    <script src="/static/js/framework/seajs/source/2.3.0/sea.js"></script>
    <script src="/static/js/config/seajs/seajs.js"></script>
    <script src="/static/js/jquery.min.js"></script>
    <script src="/static/tools/bootstrap/js/bootstrap.min.js"></script>
    <script>
{#        检测用户是否登录#}
        if(typeof ({{ request.user.id }}) == 'undefined'){
            location.href = "/teacher/login";
         }
    </script>
    {% block script %}{% endblock %}
  </body>
</html>
